<?php

namespace App\Console;

use Illuminate\Console\GeneratorCommand;

class AdminMakerCommand extends GeneratorCommand
{
    protected $namespacePrefix = '';
    protected $stubPath = '';

    public function getStub()
    {
        return $this->stubPath;
    }

    protected function buildClass($name)
    {
        $stub = $this->files->get($this->getStub());

        return $this->replaceClass($stub, $name);
    }

    protected function qualifyClass($name)
    {
        $resourceName = strtolower($name);
        $studlyCaseName = studly_case($resourceName);

        return $studlyCaseName;
    }
}
